package com.example.mapper;


import com.example.entity.Employee;
import com.example.entity.Organization;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface OrganizationMapper {
    List<Organization> selectAll(Organization organization);

    void insert(Organization organization);

    void update(Organization organization);

    @Delete("delete from `organization` where id=#{id}")
    void delete(Integer id);

    @Select("select * from organization where username = #{username}")
    Organization selectbyusername(String username);
}
